<?php
	require_once('../_inc/app.php');
	if(!$_SESSION['member']['id'])
    {
        $req = new Request();
        $req->forward(_cfg('url.login'));
    }
    else
    {
    	$dbAccount = Db::getModel('accounts');
    	$_SESSION['member']['status'] = $dbAccount->getStatus($_SESSION['member']['id']);
    	if ($_SESSION['member']['status'] == 'deleted') {
    		unset($_SESSION['member']);
    		$app->prepare();
    	} else {
        	$app->prepare("member");
    	}
    }
	$app->process();
	$app->render();